//
//  NoTextView.m
//  intelligent
//
//  Created by 甘世清 on 2024/3/2.
//

#import "NoTextView.h"

@implementation NoTextView

- (void)SQ_UIViewForSelfView{
    self.backgroundColor = UIColor.whiteColor;
    self.layer.cornerRadius = 16;
    self.layer.masksToBounds = YES;
    self.clipsToBounds = YES;
    
    UIImageView * image = [[UIImageView alloc]init];
    image.image = SQGetImage(@"绘画关键词");
    image.backgroundColor = UIColor.whiteColor;
    image.layer.cornerRadius = 10;
    image.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:image];
    [image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(66);
        make.top.centerX.equalTo(self);
    }];
    
    UILabel * label=[[UILabel alloc]init];
    label.text = SQNSLocalString(@"请输入要生成的对象关键词");
    label.font = FONT_REGULAR(18);
    label.textColor = SQColor333333;
    [image addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(image);
            make.top.equalTo(image.mas_bottom).offset(11);
    }];
    [self addSubview:self.leftBtn];
    [self.leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self);
        make.height.mas_equalTo(44);
    }];
}

- (SQCustomButton *)leftBtn{
    if (!_leftBtn) {
        _leftBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _leftBtn.text = SQNSLocalString(@"好的");
        _leftBtn.textColor = SQColor333333;
        _leftBtn.font = FONT_REGULAR(18);
        _leftBtn.backgroundColor = SQColor(@"#4AF8CE");
    }
    return _leftBtn;
}

@end
